package com.wanxi.worker;

public class Worker {
    private int WorkerNumber;
    private String name;
    private int salary;

    public Worker() {
    }

    public Worker(int workerNumber, String name, int salary) {
        WorkerNumber = workerNumber;
        this.name = name;
        this.salary = salary;
    }

    public int getWorkerNumber() {
        return WorkerNumber;
    }

    public void setWorkerNumber(int workerNumber) {
        WorkerNumber = workerNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public void work() {
        System.out.println("自己找事情做");
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Worker{");
        sb.append("WorkerNumber=").append(WorkerNumber);
        sb.append(", name='").append(name).append('\'');
        sb.append(", salary=").append(salary);
        sb.append('}');
        return sb.toString();
    }
}
